{extend name="mainadmin@layouts/base" /}
{block name="main" }

<header class="header  b-b clearfix">
   <div class="page-breadcrumbs">
          <ul class="breadcrumb">
              <li>
                  <i class="fa fa-ellipsis-v"></i>
                  <strong>编辑公告</strong>
              </li>                                  
          </ul>
       <a class="text-muted pull-right m-r-tm m-t-md pointer" data-toggle="back" title="返回"><i class="fa fa-reply"></i></a>
      </div>
</header>

<section class="scrollable  wrapper">
<form class="form-horizontal form-validate" method="post" action="{:url('info')}" style="padding:0;">
      <section class="panel panel-default">
          <header class="panel-heading bg-light">
              基本信息
          </header>
          <div class="panel-body">  

            
        <div class="line line-dashed line-lg pull-in"></div>
              <div class="form-group">
                  <label class="control-label">公告标题</label>
                  <div class="controls" >
                      <input type="text" class="input-xlarge" data-rule-maxlength="40" data-rule-required="true" data-msg-required="公告标题不能为空" name="title" value="{$row.title}" >
                  </div>
              </div>
            

             
        
              <div class="line line-dashed line-lg pull-in"></div>
              <div class="form-group">
                  <label class="control-label">公告内容</label>
                  <div class="controls wb80">
                      <textarea rows="13" class="hd" data-toggle="kindeditor"  data-tongji="remain" data-tongji-target=".js_kindeditor_tongji" data-rule-rangelength="[1,50000]" data-rule-required="true" data-msg-required="公告内容不能为空"  name="content" style="visibility:hidden;">{$row.content}</textarea>   <p class="pull-right js_kindeditor_tongji">还可输入{0}字</p>

                  </div>
              </div>
           </div>
      </section>
    

      <section class="panel panel-default">
          <header class="panel-heading bg-light">
              其他信息
          </header>
         
             <div class="line line-dashed line-lg pull-in"></div>

             <div class="form-group">
                  <label class="control-label">发布时间</label>
                  <div class="input-group w150" > <input type="text" class="input-medium" name="add_time" value="{$row.add_time|dateTpl}" id="solddate" data-after="#groundingdate" data-offsetday="0" readonly="readonly" data-toggle="datetimepicker" data-position="top-right"/><span class="input-group-addon"><i class="fa fa-calendar"></i></span></div> 
                 
              </div>
              <div class="line line-dashed line-lg pull-in"></div>
              <div class="form-group">
                  <div class="col-sm-4 col-sm-offset-2">
                      <button type="submit" class="btn btn-primary" data-loading-text="保存中...">保存</button>
                      <button type="button" class="btn btn-default" data-toggle="back">取消</button>
                  </div>
              </div>
          </div>

      </section>

	<input name="id" type="hidden" value="{$row.id|intval}">
</form>
</section>

   
{/block}
